<div class="easyui-layout plugins" data-options="fit:true" ui="deliverRejectInit" id="${id}">
	<div data-options="region:'north',border:false" style="height: 35px;overflow: hidden;padding:5px" id="queryContent"> 
		销售单号:&nbsp;&nbsp;<input id="sourceCode" type="text" size="12"/>&nbsp;&nbsp;&nbsp;
		退货日期:&nbsp;&nbsp;<input id="beginDate" type="text" size="12" class="Wdate" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd'});"/>
		----&nbsp;&nbsp;<input id="endDate" type="text" size="12" class="Wdate" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd'});"/>&nbsp;&nbsp;&nbsp;
		状态:&nbsp;&nbsp;<input id="status" type="text" size="12"/>&nbsp;&nbsp;&nbsp;
		<a href="#" class="easyui-linkbutton" id="searchBtn" data-options="iconCls:'icon-search'" style="cursor: pointer;">查询</a>
		<a href="#" class="easyui-linkbutton" id="resetBtn" data-options="iconCls:'icon-undo'" style="cursor: pointer;">重置</a>
	</div>
	<div data-options="region:'center',border:false" style="width: 100%;height:100%">
		<div id="viewList"></div>
	</div>
	<div id="editDialog">
		<div class="easyui-layout" data-options="fit:true">
			<div data-options="region:'north',border:false" style="height: 160px;overflow: hidden;padding:5px"> 
				<form id = "editForm" method="post">
					<table border="0" cellpadding="0" cellspacing="0">
						<tr>
							<td class="tdTitle">退货单号:</td>
							<td>
								<input type="hidden" name="deliverRejectId" id="deliverRejectId" />
								<input type="text" name="deliverRejectCode" id="deliverRejectCode"  style="width: 150px;border:0px" size="40" readonly="readonly"  />
							</td>
							<td class="tdTitle">审核状态:</td>
							<td>
								<input type="text" id="status"  style="width: 150px;border:0px" size="40" readonly="readonly"/>
							</td>
							<td class="tdTitle">销售单号:</td>
							<td>
								<input type="text" name="sourceCode" id="sourceCode"  style="width: 150px" size="40" />
							</td>
						</tr>
						<tr>
							<td class="tdTitle">客户:</td>
							<td>
								<input type="hidden" name="customer.customerId" id="customerId"/>
								<input type="text" id="customer" style="width: 250px" />
							</td>
							<td class="tdTitle">收货仓库:</td>
							<td>
								<input type="text" name="warehouse.warehouseId" id="warehouseId"  style="width: 150px" size="40" />
							</td>
							<td class="tdTitle">退货日期:</td>
							<td>
								<input type="text" name="deliverRejectDate" id="deliverRejectDate"  style="width: 150px" size="40" class="Wdate" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd'});" />
							</td>
						</tr>
						<tr>
							<td class="tdTitle">应退金额:</td>
							<td>
								<input type="text" name="amount" id="amount"  style="width: 250px" size="40" readonly="readonly" class="easyui-numberbox"  data-options="min:0,precision:2"/>
							</td>
							<td class="tdTitle">实退金额:</td>
							<td>
								<input type="text" name="payedAmount" id="payedAmount" style="width: 150px" size="40" class="easyui-numberbox"  data-options="min:0,precision:2"/>
							</td>
							<td class="tdTitle">银行:</td>
							<td>
								<input type="text" name="bank.bankId" id="bankId"  style="width: 150px" size="40" />
							</td>
						</tr>
						<tr>
							<td class="tdTitle">经办人:</td>
							<td>
								<input type="text" name="employee.employeeId" id="employeeId" style="width: 250px" size="40" />
							</td>
							<td class="tdTitle">发票:</td>
							<td>
								<input type="text" name="invoiceType.invoiceTypeId" id="invoiceTypeId"  style="width: 150px" size="40" />
							</td>
							<td class="tdTitle">备注:</td>
							<td colspan="5">
								<input type="text" name="note" id="note"  style="width: 600px" size="40" />
							</td>
						</tr>
					</table>
					<input type="hidden" name="deliverRejectDetailIds"  id="deliverRejectDetailIds" />
					<input type="hidden" name="delDeliverRejectDetailIds"  id="delDeliverRejectDetailIds" />
					<input type="hidden" name="productIds"  id="productIds" />
					<input type="hidden" name="colorIds"  id="colorIds" />
					<input type="hidden" name="qtys"  id="qtys" />
					<input type="hidden" name="prices"  id="prices" />
					<input type="hidden" name="note1s"  id="note1s" />
					<input type="hidden" name="note2s"  id="note2s" />
					<input type="hidden" name="note3s"  id="note3s" />
				</form>
			</div>
			<div data-options="region:'center'" style="width: 100%;height:100%">
				<div id="deliverRejectDetail" ></div>
			</div>
		</div>
	</div>
	
	<div id="selectDialog">
		<div class="easyui-layout" data-options="fit:true">
			<div data-options="region:'north',border:false" style="height: 35px;overflow: hidden;padding:5px"> 
				商品编号:&nbsp;&nbsp;<input id="productCodeSelectDialog" type="text" size="12"/>&nbsp;&nbsp;&nbsp;
				商品名称:&nbsp;&nbsp;<input id="productNameSelectDialog" type="text" size="12"/>&nbsp;&nbsp;&nbsp;
				<a href="#" class="easyui-linkbutton" id="searchBtnSelectDialog" data-options="iconCls:'icon-search'" style="cursor: pointer;">查 询</a>
			</div>
			<div data-options="region:'center',border:false" style="width: 100%;height:100%">
				<div id="productList"></div>
			</div>
		</div>
	</div>
	<div id="addDialog">
		<form method="post" id="addForm" >
			<table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
				<tr>
					<td class="tdTitle">商品编号:</td>
					<td>
						<input type="text" name="productCode" id="productCode" class="text" style="width: 150px;border: 0px" readonly="readonly" size="40" />
					</td>
					<td class="tdTitle">商品名称:</td>
					<td>
						<input type="text" name="productName" id="productName" class="text" style="width: 150px" size="40" />
					</td>
				</tr>
				<tr>
					<td class="tdTitle">商品类别:</td>
					<td>
						<input type="text"  name = "productTypeId" id="productType" class="text" style="width: 150px" size="40" />
						<input type="hidden" name="productType.productTypeId" id="productTypeId" />
						<input type="hidden" name="productTypeName" id="productTypeName"  />
					</td>
					<td class="tdTitle">单位:</td>
					<td>
						<input type="text"  name = "unitId" id="unit" class="text" style="width: 150px" size="40" />
						<input type="hidden" name="unit.dataDictionaryId" id="unitId" />
						<input type="hidden" name="unitName" id="unitName" id="unitName"  />
					</td>
				</tr>
				<tr>
					<td class="tdTitle">规格:</td>
					<td>
						<input type="text"    name = "sizeId"  id="size" class="text" style="width: 150px" size="40" />
						<input type="hidden" name="size.dataDictionaryId" id="sizeId"/>
						<input type="hidden" name="sizeName" id="sizeName"  id="sizeName"/>
					</td>
					<td class="tdTitle">颜色:</td>
					<td>
						<input type="text"    name = "colorId"  id="color" class="text" style="width: 150px" size="40" />
						<input type="hidden" name="color.dataDictionaryId" id="colorId"/>
						<input type="hidden" name="colorName" id="colorName"  id="colorName"/>
					</td>
				</tr>
				<tr>
					<td class="tdTitle">批发价格:</td>
					<td>
						<input type="text"  name = "wholesalePrice"  id="wholesalePrice"  style="width: 150px" size="40" class="easyui-numberbox"  data-options="min:0,precision:5"/>
					</td>
					<td class="tdTitle">VIP价格:</td>
					<td>
						<input type="text"  name = "vipPrice"  id="vipPrice"  style="width: 150px" size="40"  class="easyui-numberbox"  data-options="min:0,precision:5"/>
					</td>
				</tr>
				<tr>
					<td class="tdTitle">会员价格:</td>
					<td>
						<input type="text"  name = "memberPrice"  id="memberPrice"  style="width: 150px" size="40" class="easyui-numberbox"  data-options="min:0,precision:5"/>
					</td>
					<td class="tdTitle">零售价格:</td>
					<td>
						<input type="text"  name = "salePrice"  id="salePrice"  style="width: 150px" size="40"  class="easyui-numberbox"  data-options="min:0,precision:5"/>
					</td>
				</tr>
				<tr>
					<td class="tdTitle">预设进价:</td>
					<td>
						<input type="text"  name = "buyingPrice"  id="buyingPrice"  style="width: 150px" size="40" class="easyui-numberbox"  data-options="min:0,precision:5"/>
					</td>
				</tr>
				<tr>
					<td class="tdTitle">备注:</td>
					<td colspan="3">
						<textarea style="width: 395px;height: 50px" name="note"></textarea>
					</td>
				</tr>
				
			</table>
		</form>
	</div>
</div>
